package com.ldn.controller.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 李大牛家的牛 (scafel@163.com) 
 * @createDate 2024/7/15 - 10:59
 * @description ...
 **/
@Schema(name = "文件上传", description = "文件上传相关数据结构")
@Data
public class UploadDto {

    @NotBlank(message = "文件前缀不能为空")
    @Schema(description = "文件前缀")
    private String prefix;
    @NotBlank(message = "文件分组不能为空")
    @Schema(description = "文件分组")
    private String group;
    @NotNull(message = "文件不能为空")
    @Schema(description = "文件")
    private MultipartFile file;

}
